From: Andrew Cooper Date: Wed, 10 Feb 2016 13:50:59 +0000 (+0100) Subject: x86: improve annotation of autogen_entrypoints[] X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1783 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=9fd8bbff561870ebe6258fdb0d66a0d5a28161eb;p=xen.git x86: improve annotation of autogen_entrypoints[] Clang complains that the __used attribute is not applicable to an extern. In this case, the only relevent attribute is that the data is constant. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index e105b953c6..d19250a907 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -3689,7 +3689,7 @@ void __init init_idt_traps(void) this_cpu(compat_gdt_table) = boot_cpu_compat_gdt_table; } -extern void (*__initconst autogen_entrypoints[NR_VECTORS])(void); +extern void (*const autogen_entrypoints[NR_VECTORS])(void); void __init trap_init(void) { unsigned int vector;